import math


def fun(x):
    return math.exp(-x)

def iteration_cal(x):
    new_x=fun(x)
    if abs(x - new_x)<1e-5:
        return new_x
    else:
        return iteration_cal(new_x)


print("%.4f"%iteration_cal(0.5))